<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../day06/cssReset.css">
    <style>
        .box {
            height: 400px;
            background-color: yellowgreen;
            /*使用flex布局*/
            display: flex;
            /*简写排列方向和是否换行*/
            /*      排列方向  是否换行*/
            flex-flow: row wrap;
            /***********************项目在主轴上的对齐方式*****************/
            /*起点对齐
            justify-content: flex-start;*/
            /*终点对齐
            justify-content: flex-end;*/
            /*中间对齐
            justify-content: center;*/
            /*两端对齐*/
            justify-content: space-between;
            /*两端的距离是两元素中间距离的一半(两端有缝，中间一边宽)
            justify-content: space-around;*/
            /***********************交叉轴对齐方式**********************/
            /*起点对齐
            align-items: flex-start;*/
            /*终点对齐
            align-items: flex-end;*/
            /*中间对齐
            align-items: center;*/
            /*基线对齐
            align-items: baseline;*/
            /*默认值
            align-items: stretch;*/
            /**************************多轴线对齐方式************************/
            /* align-content: flex-start;
            align-content: flex-end;
            align-content: center;
            align-content: space-between;*/
            align-content: space-around;
        }
        /*项目  是放在容器中的*/
        
        .item {
            width: 170px;
            height: 150px;
            border: 3px solid black;
            padding: 10px 30px;
            text-align: center;
            box-sizing: border-box;
        }
        
        .item img {
            width: 100%;
            display: block;
        }
    </style>
</head>

<body>
    <div class="part">
        <div class="center">
            <div class="box">
                <div class="item"><img src="./img/001.png" alt="">
                    <p>小精灵</p>
                </div>
                <div class="item"><img src="./img/002.png" alt="">
                    <p>小精灵</p>
                </div>
                <div class="item"><img src="./img/003.png" alt="">
                    <p>小精灵</p>
                </div>
                <div class="item"><img src="./img/004.png" alt="">
                    <p>小精灵</p>
                </div>
                <div class="item"><img src="./img/005.png" alt="">
                    <p>小精灵</p>
                </div>
                <div class="item"><img src="./img/006.png" alt="">
                    <p>小精灵</p>
                </div>
                <div class="item"><img src="./img/007.png" alt="">
                    <p>小精灵</p>
                </div>
                <div class="item"><img src="./img/008.png" alt="">
                    <p>小精灵</p>
                </div>
                <div class="item"><img src="./img/009.png" alt="">
                    <p>小精灵</p>
                </div>
                <div class="item"><img src="./img/010.png" alt="">
                    <p>小精灵</p>
                </div>

            </div>
        </div>
    </div>

</body>

</html>